<?php
class zdOnlineComponents extends sfComponents
{
  public function executeShow()
  {
   $c = new Criteria();
   $time = sfConfig::get('app_time_online',5)*60;
            
            $c->add(zdOnlinePeer::TIME, time()-$time ,Criteria::GREATER_THAN);
	    	$this->users_online = zdOnlinePeer::doSelect($c);
  }
  
}
?>